import 'package:flutter/material.dart';
import 'package:niuniu/common/router/RouteNames.dart';
import 'package:niuniu/common/router/RouteObservers.dart';
import 'package:niuniu/pages/demo/view.dart';
import 'package:niuniu/pages/login/privacy_policy/view.dart';
import 'package:niuniu/pages/login/view.dart';
import 'package:niuniu/pages/main/binding.dart';
import 'package:niuniu/pages/main/view.dart';
import 'package:niuniu/pages/my/dark_pattern/view.dart';
import 'package:niuniu/pages/my/help_feedback/view.dart';
import 'package:niuniu/pages/my/official_customer_service/view.dart';
import 'package:niuniu/pages/my/person_info/view.dart';
import 'package:niuniu/pages/my/setting/view.dart';
import 'package:niuniu/pages/my/vip/view.dart';
import 'package:niuniu/pages/splash/view.dart';
import 'package:niuniu/pages/login/user_agreement/view.dart';
import 'package:niuniu/pages/welcome/view.dart';
import 'package:get/get.dart';

// 路由 Pages
class RoutePages {
  static final RouteObserver<Route> observer = RouteObservers();
  static List<String> history = [];

  static List<GetPage> list = [
    GetPage(name: RouteNames.systemSplash, page: () =>  SplashPage()),
    GetPage(name: RouteNames.systemWelcome, page: () =>  WelcomePage()),
    GetPage(name: RouteNames.main, page: () =>  MainPage(), binding: MainBinding()),
    GetPage(name: RouteNames.demo, page: () =>  DemoPage()),
    GetPage(name: RouteNames.login, page: () =>  LoginPage()),
    GetPage(name: RouteNames.userAgreement, page: () =>  UserAgreementPage()),
    GetPage(name: RouteNames.privacyPolicy, page: () =>  PrivacyPolicyPage()),
    GetPage(name: RouteNames.vip, page: () =>  VipPage()),
    GetPage(name: RouteNames.personInfo, page: () =>  PersonInfoPage()),
    GetPage(name: RouteNames.setting, page: () =>  SettingPage()),
    GetPage(name: RouteNames.darkPattern, page: () =>  DarkPatternPage()),
    GetPage(name: RouteNames.officialCustomerService, page: () =>  OfficialCustomerServicePage()),
    GetPage(name: RouteNames.helpFeedback, page: () =>  HelpFeedbackPage()),
  ];
}
